<?php

namespace app\common\validate;

class TagValidate extends BaseValidate
{
    /**
     * 验证规则
     */
    protected $field = [
        'tag_id'      => '',
        'tag_name'    => '技能标签',
        'staff_num'   => '技师数',
        'service_num' => '服务项目数',
        'create_time' => '',
        'update_time' => '',
        'is_delete'   => '删除',

    ];

    /**
     * 验证场景
     */
    protected $scene = [
        'index'  => [
            'tag_name' =>'require'
        ],
        'save'   => [
            'tag_name'=>'unique:tag'
        ],
        'update' => [
            'tag_id'=>'require',
            'tag_name'=>'unique:tag'
        ],
        'delete' => [],
        'read'   => []
    ];

    /**
     * 提示消息
     */
    protected $message = [

    ];


}
